import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import java.io.IOException;

public class Main {

    public static void main(String[] args) {

        String videoBase = "http://weike.lanqiao.cn/static/coursehuifang/sjjg1/sources";

        int i = 0;
        while (true) {

            System.out.println(i);
            try {
                Document document = Jsoup.connect("http://weike.lanqiao.cn/course/golisten.do?courseid="+i++)
                        .cookie("JSESSIONID", "730D7F4401FBF7A9807704A00648F0DD")
                        .get();

                System.out.println(document.title());
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
